package com.gy.api.pc.region.dao;

import com.gy.api.pc.region.domain.po.RegionPO;
import com.gy.api.pc.region.domain.vo.Region;
import io.lettuce.core.dynamic.annotation.Param;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface RegionDao extends Mapper<RegionPO> {
    List<Region> selectChildrenByParentId(@Param("parentId") Long parentId);

    void insertRegion(Region region);
}